﻿@{
    ViewBag.Title = "PromotionDetail";
}
<div class="center">
    <div id="Breadcrumb" class="Breadcrumb">
        <ul>
            <li class="first">
                <a href='javascript:;' onclick="javascript:loadAction('Index2','Main')">Trang chủ
                </a>
            </li>
            <li>
                <a href='javascript:;' onclick="javascript:loadAction('personal','Account')">Tài khoản của tôi
                </a>
            </li>
            <li>
                <a href='javascript:;' onclick="javascript:loadAction('promotionList','Admin')">Danh sách khuyến mãi
                </a>
            </li>
            <li>
                <span>Thông tin khuyến mãi</span>
            </li>
        </ul>
    </div>
<div class="Account-Module DefaultModule">
    
<div class="DefaultModule LoginForm Block Block2">
    <span style="display: none;">
        </span>
    <div id="CreateAccountForm" class="Block Moveable Panel CreateAccountForm">
        
        <div id="cphMain_ctl00_ctl01_ctl00_pnlInfo">
	
            <div class="BlockContent">
                <div class="defaultTitle LoginForm-title">
                    <h1>
                        Thông tin khuyến mãi
                    </h1>
                </div>
                <form action="/Admin/PromotionDetailClick" method="post" onsubmit="return validationPromotion();" >
                <div class="defaultContent LoginForm-content CreateAccountContainer">                    
                    <h3>Thông tin bắt buộc</h3>
                    <div class="FormContainer HorizontalFormContainer NarrowFormContainer">
                        <dl>   
                            @if(Model.ID > 0)
                            {
                            <dt>
                                 ID:
                            </dt>
                            <dd>
                                <input name="promoID" type="text" value="@Model.ID"
                                    id="promoID" class="NormalTextBox" readonly="true"   style="width:100px;">                                                                    
                            </dd>
                            }                         
                            <dt>
                                 <span class="required">*</span>Tên khuyến mãi:
                            </dt>
                            <dd>
                                <input name="promoTitle" type="text" value="@Model.title"
                                    id="promoTitle" class="NormalTextBox" style="width:200px;">                                
                            </dd>
                            <dt>
                                <span class="required">*</span> Nội dung khuyến mãi:
                            </dt>
                            <dd>
                                <textarea name="description" id="description" class="NormalTextBox" 
                                    style="width:200px;">@Model.description</textarea>                                                                              
                            </dd>
                            <dt>
                                <span class="required">*</span> Giảm giá (%):
                            </dt>
                            <dd>
                                <input name="rate" type="number" value="@Model.rate"
                                    id="rate" class="NormalTextBox" min="0" max="100">                                                                   
                            </dd>
                            <dt>
                                <span class="required">*</span> Ngày bắt đầu:
                            </dt>
                            <dd>
                                <input name="startDate" type="text" value="@Model.start_date.ToString("dd-MM-yyyy HH:mm:ss")"
                                    id="startDate" class="NormalTextBox" 
                                    style="width:200px;">                                                                    
                            </dd>                                                                                                                                                    
                            
                            <dt>
                                <span class="required">*</span> Ngày kết thúc:
                            </dt>
                            <dd>
                                <input name="endDate" type="text" value="@Model.end_date.ToString("dd-MM-yyyy HH:mm:ss")"
                                    id="endDate" class="NormalTextBox" 
                                    style="width:200px;">                                                                    
                            </dd>                                   
                              <script type="text/javascript">
                                  $(function () {
                                      $("#startDate").datetimepicker({
                                          dateFormat: 'dd-mm-yy', timeFormat: 'HH:mm:ss'
                                      });
                                      $("#endDate").datetimepicker({
                                          dateFormat: 'dd-mm-yy', timeFormat: 'HH:mm:ss'
                                      });
                                  });
                              </script>
                            <dt>&nbsp;</dt>
                            <dd>
                                <input type="submit" name="btnSubmit" value="Cập nhật khuyến mãi"                                     
                                    class="CreateAccountButton">                                                                
                            </dd>
                        </dl>
                    </div>                    
                    
                    <p>
                    </p>
                </div>
                    </form>
                <div class="defaultFooter LoginForm-footer"><div></div></div>
            </div>
        
</div>
    </div>
</div>    


</div>

    </div>